#include "MoutainScene.h"
#include "CloudScene.h"
#include "GameBackGroundLayer.h"
using namespace cocos2d;


CCScene* MoutainScene::scene()
{
	CCScene * scene = NULL;
	do 
	{
		// 'scene' is an autorelease object
		scene = CCScene::create();
		CC_BREAK_IF(! scene);

		// 'layer' is an autorelease object
		MoutainScene *layer = MoutainScene::create();
		CC_BREAK_IF(! layer);
		scene->addChild(layer);
		//CloudScene *m_layer = CloudScene::create();
		//scene->addChild(m_layer);
		GameBackGroundLayer *m_layer = GameBackGroundLayer::create();
		scene->addChild(m_layer);
		CCSize winsize = CCDirector::sharedDirector()->getWinSize();

		// add layer as a child to scene
		
	
		
	} while (0);

	// return the scene
	return scene;
}
MoutainScene::MoutainScene()
{
}

MoutainScene::~MoutainScene()
{

}

bool MoutainScene::init()
{
	bool bRef = false;
	do
	{
		CCDirector::sharedDirector()->resume();
		bRef = true;
	}while (0);
	
	return bRef;
}
